﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using F_BLL;
using F_MODEL;


namespace MvcApplication1.Controllers
{
    public class TransController : zyl_LoginController
    {
        Trans_bll bll = new Trans_bll();

        /// <summary>
        /// 中转站显示信息
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public Mails trans_mod()
        { 
            //获取登录用户信息
            UserInfo m = new UserInfo();
            m = mod();
            int id = m.userId;
            Mails mails_mod = bll.Tran_show(id).FirstOrDefault();
            return mails_mod;
        }


        /// <summary>
        /// 获取寄件支付--货物明细
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public List<Mails> send_pay()
        {
            send_paybll b = new send_paybll();
            //获取登录用户信息
            UserInfo m = new UserInfo();
            m = mod();
            int id = m.userId;
            List<Mails> list = b.ji_pay(id);
            return list;
        }

    }
}
